﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Photo_Manipulator
{
    public partial class Locations : Form
    {
        frmMain refMainForm;
        public Locations(frmMain mf)
        {
            refMainForm = mf;
            InitializeComponent();
        }

        private void btnSourceLoc_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();
            if (fbd.ShowDialog() == DialogResult.OK)
            {
                txtBoxSourceLoc.Text = fbd.SelectedPath;
                refMainForm.AddSourceThumbnails(fbd.SelectedPath);
            }
        }

        public void lstFolderNames_SelectedIndexChanged(object sender, EventArgs e)
        {

            /*if (lstFolderNames.SelectedIndex == 0)
                return 0;
            else if (lstFolderNames.SelectedIndex == 1)
                return 1;
            else if (lstFolderNames.SelectedIndex == 2)
                return 2;
            else if (lstFolderNames.SelectedIndex == 3)
                return 3;
            else if (lstFolderNames.SelectedIndex == 4)
                return 4;
            else if (lstFolderNames.SelectedIndex == 5)
                return 5;
            else
                return 0;
            */
        }

       
    }
}
